package com.bjsxt.service;

import com.bjsxt.domain.Provider;
import com.bjsxt.domain.Provider;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bjsxt.dto.ProviderDto;
import com.bjsxt.vo.DataGridView;

import java.util.List;

public interface ProviderService{
    /**
     * 分页查询
     * @param providerDto
     * @return
     */
    DataGridView listProviderPage(ProviderDto providerDto);

    /**
     * 根据id查询
     * @param providerId
     * @return
     */
    Provider getOne(Long providerId);

    /**
     * 添加
     * @param providerDto
     * @return
     */
    int insertProvider(ProviderDto providerDto);

    /**
     * 修改
     * @param providerDto
     * @return
     */
    int updateProvider(ProviderDto providerDto);

    /**
     * 根据id集合删除
     * @param providerIds
     * @return
     */
    int deleteProvider(Long[] providerIds);

    /**
     * 查询所有可用的供应商
     * @return
     */
    List<Provider> selectAllProvider();

}
